#!/bin/sh
rrdpath=""
rrdfile=/usr/local/frogd/data/frogd.rrd

echo attention, le fichier suivant va etre cree ou, s il existe, il va etre remis a zero.
echo the following file will be created
echo $rrdfile
echo pour continuer appuyez sur enter ou CTRL+C pour interrompre
echo press any key or hit CTRL+C to interrupt
read
mkdir -p `dirname $rrdfile`
$rrdpath/rrdtool create $rrdfile       \
            DS:temp:GAUGE:600:U:U   \
            DS:press:GAUGE:600:U:U  \
            DS:hum:GAUGE:600:U:U    \
            RRA:AVERAGE:0.5:1:600  \
            RRA:AVERAGE:0.5:6:600   \
            RRA:AVERAGE:0.5:24:600  \
            RRA:AVERAGE:0.5:288:600
echo fichier rrd cree
echo rrd file created
